package com.hzdl.car.contorlle;

import com.hzdl.car.service.CustomerService;
import com.hzdl.car.service.RentService;
import com.hzdl.car.util.HzdlResultJson;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;


@Controller
@RequestMapping("stat")
public class StatisticsController {

    @Autowired
    private CustomerService customerService;
    @Autowired
    private RentService rentService;


    @RequestMapping("customerAddreeStat")
    @ResponseBody
    public HzdlResultJson customerAddreeStat(){

        return new HzdlResultJson(customerService.findAddress());
    }

//    @RequestMapping("salesVolume")
//    @ResponseBody
//    public H

    public  HzdlResultJson salesVolume(){



        return new HzdlResultJson(null);
    }


}
